<?php
      
$con=mysql_connect("localhost","reimemic","kee7baef");
// Check connection
if (!$con)
  {
  echo "Failed to connect to MySQL: " . mysql_connect_error();
  }

// Create database
mysql_select_db("reimemic");

mysql_query("INSERT INTO Trololo2 (Jmeno, Vyska,Vaha,BMI)
VALUES ('$_SESSION['name']','$_SESSION['height']','$_SESSION['weight']','$_SESSION['bmi']')");
?>